package model

import (
	"engine/consts"
	"os"
)

type UploadFileReq struct {
	File       *os.File `json:"file"`
	IsPublic   bool     `json:"isPublic"`
	ImageCheck bool     `json:"imageCheck"`
}

type DownFilePath struct {
	FilePath string `json:"filePath"`
}

type EnclosureUrl struct {
	PrivateUrl string                   `json:"privateUrl"`
	TempUrl    string                   `json:"tempUrl"`
	Type       consts.FileEnclosureType `json:"type"`
}

type DocumentAnalysisReq struct {
	DocumentType consts.DocumentType `json:"documentType"`
	File         os.File             `json:"file"`
}

type SearchRequest struct {
	SupplierId     uint64 `json:"supplierId" form:"supplierId" binding:"required"`
	RelatedOrderId string `json:"relatedOrderId" form:"relatedOrderId" binding:"required"`
	PublicSearchData
}
